/**
 * All configuration basic of the application
 * Toda la configuracion basica de la aplicacion
 */
config = {
	title: "Easy Google Maps",
	
	/** Show message in the console of firefox/firebug -- mostrar mensajes en la consola de firefox/firebug */
	debug:1,
	
	/** define if your use cookie for save position an other data */
	useCookie:true,
	
	/** Days of elapse cookies -- Dias que dura la seccion de las cookies */
	expiredays:2,
	
	/** Name of cookie - nombre de la cookie */
	cookiename:"EGM",
	
	/** key getter of google maps API - key obtenida desde google maps api */
	key:"ABQIAAAAvMx9MMSRYO0hzL73A4JVmRST8rVZ60KddS20LlWifP-AaFBAsRSCFnE5frJ5SX2EYiG9LJVuk-8iag",
	
	/** google analitycs key, sample: "UA-1234567-1" 
	 * si no tiene codigo, ignora a google analitycs */
	gaKey : "UA-8213432-1",
	
	/** KLMs por defecto */
	kmls:[],

	links:[],
	/** latitude for default */
	lat:-34.600432785044404,
	
	/** longitude for default */
	lng:-58.417396545410156,
	
	/** zoom for default */
	zoom:12,
	
	/** type map for default */
	typeMap:"m",
	
	/** title for share */
	share_title:"Easy Google Maps",
	
	/** image to use to loading, background of map */
	backgroundImage:"egm-config/img/bg.gif",
	
	/** your logo, change size in map:insertLogo() */
	logo:"egm-config/img/logo.png",
	
	//Add to more language: (if added, change validation into m:loadMapPreferences)
	/** language for default */
	LANG_DEFAULT : "es",
	/** English */
	LANG_EN : "en",
	/** Spanish */
	LANG_ES : "es",
	
	maximize:true,
	
	pathToKmlJson:"egm-config/kmls.json",
	
	pathToLinksJson:"egm-config/links.json",
	
	showLogo:true,
	
	blackStyle:true
};


/**
 * All text here:
 * Todo el texto aqui:
 * */
text = {
	// Use constants
	ER_NO_LOAD_MAP:0,
	ER_NO_LOAD_KML:1,
	
	// Array with all texts
	msgs:[],
	
	// Load texts
	loadText:function(){
		text.msgs = new Array();
		text.msgs[config.LANG_ES] = new Array();
		text.msgs[config.LANG_EN] = new Array();
		
		text.msgs[config.LANG_ES][text.ER_NO_LOAD_MAP]="No se pudo cargar el mapaES";
		text.msgs[config.LANG_EN][text.ER_NO_LOAD_MAP]="No se pudo cargar el mapaEN";
		text.msgs[config.LANG_ES][text.ER_NO_LOAD_KML]="No se pudo cargar el archivo KML ES";
		text.msgs[config.LANG_EN][text.ER_NO_LOAD_KML]="No se pudo cargar el archivo KML EN";
	},
	
	//Get text, use constants for invoke
	g:function(s){
		return text.msgs[m.user_lang][s];
	}
};